<?php
/****************************************************************************

	COPYRIGHT(C) WWW.MAXSI.DK, MAXSI SOFTWARE, SORTIE 2009
	ALL RIGHTS RESERVED

	Maxsi Distribution Shared/ Branch
	Scripts shared by the MasterServer/ and ContentServer/ Branch of the Maxsi
	Distribution Server-Side Code Branches.
		
	timesystem.php
	Sets the current timezone.

****************************************************************************/

// see http://dk.php.net/manual/en/timezones.php !
date_default_timezone_set($md_timezone);

	function md_date2stamp($time)
	{
		$return = mktime(substr($time,11,2),substr($time,14,2),substr($time,17,2),substr($time,5,2),substr($time,8,2),substr($time,0,4));
		return $return;
	}
	function md_stamp2date($stamp)
	{
		return date("Y:m:d H:i:s",$stamp);
	}
	function md_getdate($stamp)
	{
		return date("Y-m-d",$stamp);
	}
	function md_gettoday()
	{
		return date("Y-m-d");
	}


?>